package com.simple.study.mapper;

import com.github.pagehelper.Page;
import com.simple.study.base.dao.MyMapper;
import com.simple.study.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends MyMapper<User> {

    Page<User> getUsersList(@Param("query")String query, @Param("pagenum")Integer pagenum, @Param("pagesize")Integer pagesize);


    User selectByUsername(String username);

    void addUser(User user);

    void updateById(User user);

    void updateUserState(User user);

    void distributionRole(User user);
}